﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookingHotel.ClasseDiDominio
{
    class Period
    {
        public DateTime StartPeriod { get; set; }
        public DateTime EndPeriod { get; set; }
        public decimal Coefficient { get; set; }
        public int Id { get; private set; }

        public Period(DateTime startPeriod, DateTime endPeriod, decimal coefficient, int periodId)
        {
            StartPeriod = startPeriod;
            EndPeriod = endPeriod;
            Coefficient = coefficient;
            Id = periodId;
        }

        public string ToString()
        {
            return Id + ": " + StartPeriod.ToShortDateString() + " " + EndPeriod.ToShortDateString() + " " + Coefficient.ToString() + "\n";
        }
    }
}
